<h1>Thread</h1>

<% form_for @forum_thread do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
    <%= f.hidden_field :forum_id, :value => params[:forum_id] %>
  <p>
  <% fields_for :posts do |post| %>
    <%= post.text_area :text %><br />
  <% end %>
  </p>
  <p><%= submit_tag "Submit" %></p>
<% end %>
